package com.ly.cloud.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.ly.cloud.entity.ApprovalCategoryPo;
import com.ly.cloud.vo.ApprovalCategoryVo;

/**
 * @Author: siqi
 * @Description:
 * @Date: Create in 201/12/7
 */
public interface ApprovalMapper extends BaseMapper<ApprovalCategoryPo>{
	/** 
	 * Method Name:  queryAllApprovalCategory
	 * Description:  分页查询
	 * @param page 分页对象
	 * @param name 审批流程名称
	 * @return List<ApprovalCategoryVo>
	 * @exception 	
	 * @author siqi
	 * @mail siqi@ly-sky.com
	 * @date: 2018年8月21日
	 */
	public List<ApprovalCategoryVo> queryAllApprovalCategory(@Param("page")Pagination page,@Param("name")String name);
	
	/** 
	 * Method Name:  updateIsEnable
	 * Description:  设置是否启用
	 * @param is_enable 当前是否启用状态
	 * @param categoryID  审批类别ID
	 * @return boolean
	 * @exception 	
	 * @author siqi
	 * @mail siqi@ly-sky.com
	 * @date: 2018年8月21日
	 */
	public int updateCategoryIsEnable(@Param("map")HashMap<String,Long> map); 
}
